package shejimoshi.zhuangshimoshi;
// 具体装饰者
public class RedShapeDecorator extends ShapeDecorator {
    public RedShapeDecorator(Shape decoratedShape) {
        super(decoratedShape);
    }

    @Override
    public void draw() {
        super.draw();
        setColor();
    }

    private void setColor() {
        System.out.println("Painting the shape red.");
    }
}

